import request from '@/utils/request.js'
// 首页部分
export const getSwiperData = () => request.get('home/swiperdata')
export const getCatItems = () => request.get('home/catitems')
export const getFloorData = () => request.get('home/floordata')

// 商品分类，列表
export const getCategoriesData = () => request.get('categories')
export const getListData = (obj) => request.get('goods/search', obj)
    // 搜索查询
export const getqsearchData = (obj) => request.get('goods/qsearch', obj)
export const getToken = obj => request.post("users/wxlogin", obj);

export const orderCreate = obj => request.auth("my/orders/create", obj);
export const req_unifiedorder = obj => request.auth("my/orders/req_unifiedorder", obj);
export const chkOrder = obj => request.auth("my/orders/chkOrder", obj);
export const all = obj => request.auth.get("my/orders/all", obj);